package cn.qitom.auth.model;

import cn.dev33.satoken.stp.SaTokenInfo;
import cn.qitom.service.user.entity.UserBase;
import lombok.Data;

import java.util.List;


@Data
public class LegoUserDetail extends SaTokenInfo {

    public LegoUserDetail(UserBase userBase) {
        this.userId = userBase.getId();
        this.phone = userBase.getPhone();
        this.account = userBase.getAccount();
        this.userName = userBase.getName();
        this.status = userBase.getStatus();
        this.tenantList = userBase.getTenantList();
    }

    private static final long serialVersionUID = 1L;
    /**
     * 手机，唯一
     */
    private Long userId;
    /**
     * 手机，唯一
     */
    private String phone;
    /**
     * 账号，唯一
     */
    private String account;

    private String userName;

    /**
     * 状态 2 手机号验证过
     */
    private Integer status;

    /**
     * 第三方授权id
     */
    private List tenantList;


}
